package com.starchen.optimalselection.web.service;

import com.starchen.optimalselection.common.model.ResultPage;
import com.starchen.optimalselection.common.model.Category;
import com.starchen.optimalselection.common.model.form.SkuInfoQueryForm;
import com.starchen.optimalselection.web.model.vo.ItemDetailVO;

import java.util.List;

/**
 * 前台商品管理Service
 * Created by daxilong on 2020/4/6.
 */
public interface ProductService {
    /**
     * 综合搜索商品
     */
    ResultPage page(SkuInfoQueryForm queryParamsVo);

    /**
     * 以树形结构获取所有商品分类
     */
    List<Category> getCategoryTreeList();

    /**
     * 获取前台商品详情
     */
    ItemDetailVO getSkuInfo(Long id);
}
